package com.caesar.Exercise;

/**
 * @author caesar
 * @date 2025/7/12
 * @Description:
 * @apiNote
 */
public class ArrayTools {
    public static Integer[] boxing(int[] arr){
        Integer[] newArr = new Integer[arr.length];
        for (int i = 0; i < arr.length; i++) {
            newArr[i] = arr[i];
        }
        return newArr;
    }
    public static int[] unboxing(Integer[] arr){
        int[] newArr = new int[arr.length];
        for (int i = 0; i < arr.length; i++) {
            newArr[i] = arr[i];
        }
        return newArr;
    }
}
